{extend name="../../layout" /}

{block name="content"}
<div class="panel panel-default">
    <div class="panel-heading">
        <h3 class="panel-title">导入教师</h3>
    </div>
    <div class="panel-body">
        <div class="alert alert-info">
            <p>1. 请下载导入模板文件，按照模板格式填写数据</p>
            <p>2. 仅支持xls/xlsx格式文件</p>
            <p>3. 文件大小不能超过2MB</p>
        </div>
        <form id="import-form" class="form-horizontal" role="form" enctype="multipart/form-data" method="POST" action="">
            <div class="form-group">
                <label class="control-label col-xs-12 col-sm-2">选择文件:</label>
                <div class="col-xs-12 col-sm-8">
                    <input type="file" name="file" class="form-control" accept=".xls,.xlsx" required>
                </div>
            </div>
            <div class="form-group">
                <div class="col-xs-12 col-sm-8 col-sm-offset-2">
                    <button type="submit" class="btn btn-primary">导入</button>
                    <a href="__CDN__/template/teacher_import_template.xlsx" class="btn btn-default">下载模板</a>
                </div>
            </div>
        </form>
    </div>
</div>
{/block}